import request from '@/utils/request'

export function getMenuList() {
  return request({
    url: '/menu/getList',
    method: 'get'
  })
}

export function getAllMenuList() {
  return request({
    url: '/menu/getAllMenuList',
    method: 'get'
  })
}

export function delMenu(id) {
  return request({
    url: '/menu/delMenu/' + id,
    method: 'get'
  })
}

export function saveMenu(data) {
  return request({
    url: '/menu/saveMenu',
    method: 'post',
    data
  })
}
